\hypertarget{classCoefficient}{\section{Coefficient Class Reference}
\label{classCoefficient}\index{Coefficient@{Coefficient}}
}


{\ttfamily \#include $<$coefficient.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{classCoefficient_a3fadfdb5b838623d0ee50f461f5c1ee9}{Non\-Zero\-Coefficient} ()
\item 
\hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_a5c80d53081e97a275132b03ac79c32bd}{operator+} (const \hyperlink{classCoefficient}{Coefficient} \&)
\item 
\hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_a91ceefcac66c649aed0d178094008adf}{operator-\/} (const \hyperlink{classCoefficient}{Coefficient} \&)
\item 
\hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_ab0084d16124b7935a35170906aba5c77}{operator/} (const \hyperlink{classCoefficient}{Coefficient} \&)
\item 
\hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_aee86607eb24c1435e390c9bdd89de7b8}{operator$\ast$} (const \hyperlink{classCoefficient}{Coefficient} \&)
\item 
void \hyperlink{classCoefficient_a9ba8bb3d9786c166a338ff9d78f2927b}{Print\-Coefficient\-To\-Stdout} ()
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_aad1b032c168f93a53ec73c9396234da1}{Read\-Coefficient\-From\-String} (const string)
\item 
static \hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_ac917996687e24d48b1c9733ca6de3b3a}{Zero\-Instance} ()
\item 
static \hyperlink{classCoefficient}{Coefficient} \hyperlink{classCoefficient_a87ae28306c95a19ba5823d4d091fa8ae}{One\-Instance} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to store and manipulate a linear equation. In some way, the idea of this class is to isolate the type begin used in order to be able to change for example from double to long double or rational numbers, as needed, without dependency on the rest of the system. 

\subsection{Member Function Documentation}
\hypertarget{classCoefficient_a3fadfdb5b838623d0ee50f461f5c1ee9}{\index{Coefficient@{Coefficient}!Non\-Zero\-Coefficient@{Non\-Zero\-Coefficient}}
\index{Non\-Zero\-Coefficient@{Non\-Zero\-Coefficient}!Coefficient@{Coefficient}}
\subsubsection[{Non\-Zero\-Coefficient}]{\setlength{\rightskip}{0pt plus 5cm}bool Coefficient\-::\-Non\-Zero\-Coefficient (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classCoefficient_a3fadfdb5b838623d0ee50f461f5c1ee9}
This method tell if the value of the \hyperlink{classCoefficient}{Coefficient} is zero.

\begin{DoxyReturn}{Returns}
true$|$false, wether the \hyperlink{classCoefficient}{Coefficient} value is 0 or not. 
\end{DoxyReturn}
\hypertarget{classCoefficient_a87ae28306c95a19ba5823d4d091fa8ae}{\index{Coefficient@{Coefficient}!One\-Instance@{One\-Instance}}
\index{One\-Instance@{One\-Instance}!Coefficient@{Coefficient}}
\subsubsection[{One\-Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::\-One\-Instance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classCoefficient_a87ae28306c95a19ba5823d4d091fa8ae}
This method just gives an instance of \hyperlink{classCoefficient}{Coefficient} with value 1.

\begin{DoxyReturn}{Returns}
\hyperlink{classCoefficient}{Coefficient} instance with value 1. 
\end{DoxyReturn}
\hypertarget{classCoefficient_aee86607eb24c1435e390c9bdd89de7b8}{\index{Coefficient@{Coefficient}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!Coefficient@{Coefficient}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::operator$\ast$ (
\begin{DoxyParamCaption}
\item[{const {\bf Coefficient} \&}]{c1}
\end{DoxyParamCaption}
)}}\label{classCoefficient_aee86607eb24c1435e390c9bdd89de7b8}
Operator $\ast$ overload.


\begin{DoxyParams}{Parameters}
{\em c1} & the coefficient for the operation. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the result after applying the operation. 
\end{DoxyReturn}
\hypertarget{classCoefficient_a5c80d53081e97a275132b03ac79c32bd}{\index{Coefficient@{Coefficient}!operator+@{operator+}}
\index{operator+@{operator+}!Coefficient@{Coefficient}}
\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::operator+ (
\begin{DoxyParamCaption}
\item[{const {\bf Coefficient} \&}]{c1}
\end{DoxyParamCaption}
)}}\label{classCoefficient_a5c80d53081e97a275132b03ac79c32bd}
Operator + overload.


\begin{DoxyParams}{Parameters}
{\em c1} & the coefficient for the operation. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the result after applying the operation. 
\end{DoxyReturn}
\hypertarget{classCoefficient_a91ceefcac66c649aed0d178094008adf}{\index{Coefficient@{Coefficient}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!Coefficient@{Coefficient}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::operator-\/ (
\begin{DoxyParamCaption}
\item[{const {\bf Coefficient} \&}]{c1}
\end{DoxyParamCaption}
)}}\label{classCoefficient_a91ceefcac66c649aed0d178094008adf}
Operator -\/ overload.


\begin{DoxyParams}{Parameters}
{\em c1} & the coefficient for the operation. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the result after applying the operation. 
\end{DoxyReturn}
\hypertarget{classCoefficient_ab0084d16124b7935a35170906aba5c77}{\index{Coefficient@{Coefficient}!operator/@{operator/}}
\index{operator/@{operator/}!Coefficient@{Coefficient}}
\subsubsection[{operator/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::operator/ (
\begin{DoxyParamCaption}
\item[{const {\bf Coefficient} \&}]{c1}
\end{DoxyParamCaption}
)}}\label{classCoefficient_ab0084d16124b7935a35170906aba5c77}
Operator / overload.


\begin{DoxyParams}{Parameters}
{\em c1} & the coefficient for the operation. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the result after applying the operation. 
\end{DoxyReturn}
\hypertarget{classCoefficient_a9ba8bb3d9786c166a338ff9d78f2927b}{\index{Coefficient@{Coefficient}!Print\-Coefficient\-To\-Stdout@{Print\-Coefficient\-To\-Stdout}}
\index{Print\-Coefficient\-To\-Stdout@{Print\-Coefficient\-To\-Stdout}!Coefficient@{Coefficient}}
\subsubsection[{Print\-Coefficient\-To\-Stdout}]{\setlength{\rightskip}{0pt plus 5cm}void Coefficient\-::\-Print\-Coefficient\-To\-Stdout (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classCoefficient_a9ba8bb3d9786c166a338ff9d78f2927b}
This method just prints the oefficient. \hypertarget{classCoefficient_aad1b032c168f93a53ec73c9396234da1}{\index{Coefficient@{Coefficient}!Read\-Coefficient\-From\-String@{Read\-Coefficient\-From\-String}}
\index{Read\-Coefficient\-From\-String@{Read\-Coefficient\-From\-String}!Coefficient@{Coefficient}}
\subsubsection[{Read\-Coefficient\-From\-String}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::\-Read\-Coefficient\-From\-String (
\begin{DoxyParamCaption}
\item[{const string}]{str}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classCoefficient_aad1b032c168f93a53ec73c9396234da1}
This method reads a coefficient from a string.


\begin{DoxyParams}{Parameters}
{\em str} & The string that contains the \hyperlink{classCoefficient}{Coefficient}. \\
\hline
\end{DoxyParams}
\hypertarget{classCoefficient_ac917996687e24d48b1c9733ca6de3b3a}{\index{Coefficient@{Coefficient}!Zero\-Instance@{Zero\-Instance}}
\index{Zero\-Instance@{Zero\-Instance}!Coefficient@{Coefficient}}
\subsubsection[{Zero\-Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Coefficient} Coefficient\-::\-Zero\-Instance (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classCoefficient_ac917996687e24d48b1c9733ca6de3b3a}
This method just gives an instance of \hyperlink{classCoefficient}{Coefficient} with 0 value.

\begin{DoxyReturn}{Returns}
\hyperlink{classCoefficient}{Coefficient} instance with 0 value. 
\end{DoxyReturn}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
coefficient.\-h\item 
coefficient.\-cpp\end{DoxyCompactItemize}
